package com.bolt.support.sqlconfig.dialect;

import com.bolt.support.query.toolkit.DialectUtil;

/**
 * Created by Administrator on 2017/8/16.
 */
public abstract class PagingDialect {

    public static enum Type{
        MYSQL,
        ORACLE,
        POSTGRESQL
    }

    public abstract String getLimitString(String sql, long offset, long limit);

    public String getCountString(String sql){
        return DialectUtil.getCountSql(sql);
    }
}
